package main

import (
	"github.com/gin-gonic/gin"
	api_way "zg4zk3/api-way"
	"zg4zk3/srv/models"
)

func main() {

	models.MysqlInit()
	models.ExampleNewClient()
	router := gin.Default()

	api_way.LoadRouter(router)

	router.GET("/pingzk3", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})
	router.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
